<template>
  <div id="app">
    <header class="header">
      <h1>健康床监控系统</h1>
      <nav class="nav">
        <router-link to="/">监控仪表盘</router-link>
        <router-link to="/bed-control">床板控制</router-link>
      </nav>
    </header>
    <main class="main">
      <router-view />
    </main>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background: #fff;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header h1 {
  margin: 0 0 1rem;
  color: #1f2937;
  font-size: 1.5rem;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: #3b82f6;
  background: #f3f4f6;
}

.nav a.router-link-active {
  color: #3b82f6;
  background: #eff6ff;
}

.main {
  flex: 1;
  padding: 20px;
}

@media (min-width: 1024px) {
  .header {
    padding: 1.5rem;
  }

  .header h1 {
    font-size: 2rem;
  }
}
</style>
